|
|
|
|
|
|
|
You also might want to use one of Visual Basic's form templates in your project. These templates are predefined forms that are set up for a specific function, such as an About Box, a Splash Screen, a DataGrid form, or a Tip of the Day form. The advantage of using these templates is that the skeleton of the form is already created for you. You simply add your own graphics, label captions, and minimal code to customize the form to your needs. As an example, Figure 11.11 shows the About Box form template. |
|
|
|
|
|
|
|
|
Figure 11.11
Form templates make developing
common pieces of a program easy. |
|
|
|
|
|
|
|
|
To access one of the form templates, bring up the Add Form dialog box by clicking the Add Form button on the toolbar or selecting Project, Add Form. You can then choose one of the form types from the New tab of the dialog box (see Figure 11.12). |
|
|
|
|
|
|
|
|
Figure 11.12
Form templates can be quickly
customized and used in your project. |
|
|
|
|
|
|
|
|
If you create a form that you think you will use in a number of programs, you can make a template out of it as well. Simply save the form in the form template folder of Visual Basic. Then the next time you want to add a new form, your template will appear in the Add Form dialog box as well. |
|
|
|
|
|
|
|
|
|
If you let Visual Basic install to the default directory, the forms templates are stored in the Visual Basic \Template\Forms folder.  |
|
|
|
|
|
|
|